/**
 * $Id: NeighbouringNumbersApp.java 69 2012-12-11 11:54:51Z Denis.Skalsky@gmail.com $
 */
package com.globallogic.skalskyy.javabasic.neighbouringnumbers;

/**
* NeighbouringNumbersApp is a main program.
* @author $Author: Denis.Skalsky@gmail.com $
* @version $Revision: 45 $
*/
public class NeighbouringNumbersApp {

	public static void main(String[] args) {
		NeighbouringNumbers neighbouringNumbers = new NeighbouringNumbers();
		neighbouringNumbers.setConsoleReader();
		System.out.println(
				neighbouringNumbers.getIndexWithMinDistance(
						neighbouringNumbers.getArrayOfInt()));
	}
}
